"""
URL configuration for myblog project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from xml.etree.ElementInclude import include

from django.contrib import admin
from django.urls import path
from App import views
# 应用名称
app_name = 'app'
urlpatterns = [
    path('',views.home,name='home'),
    path("list/<int:page>/",views.article_lsit,name='article_list2'),
    path('list/',views.article_lsit,name='article_list'),

    path("detail/<int:tid>/",views.article_detail,name="article_detail"),
    path('login/',views.Login_view.as_view(),name='login'),
    path('register/',views.register,name='register'),
    path("generate/",views.generate_captcha,name='generate_captcha'),
    path("yzm/",views.verify_code,name='verify_code'),
    # 评论
    path("remark/",views.remark_article,name='remark_article'),
]
